package edu.cuit.canary;

import java.util.Scanner;

/**
 * 计算以秒为单位的时间量所包含的分钟数和余下的秒数。
 */
public class DisplayTime {
    public static void main(String[] args) {
        System.out.print("请输入一个整数来代表秒数:");
        try(Scanner input = new Scanner(System.in)){
            int seconds = input.nextInt();
            int minutes = seconds / 60;
            int remainingSeconds = seconds % 60;
            System.out.println(seconds + "秒包含" + minutes + "分钟" + remainingSeconds + "秒");
        }
    }
}
